﻿//-----------------------------------------------------------------------
// <copyright file="MessageFactory.cs" company="Mulala">
//     Copyright Mulala. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Mulala.Cavan.Domain.MainBoundedContext.InformationModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Mulala.Cavan.Domain.MainBoundedContext.SecurityModule;

    public static class UserMessageFactory
    {
        public static UserMessage CreateUserMessage(
                                        UserAccount ownerUser,
                                        string content,
                                        int parentID,
                                        int reply,
                                        UserAccount messagerUser,
                                        bool isDeleted,
                                        DateTime editTime,
                                        string editUser)
        {
            UserMessage userMessage = new UserMessage();
            userMessage.Content = content;
            userMessage.EditTime = editTime;
            userMessage.EditUser = editUser;
            userMessage.IsDeleted = isDeleted;
            userMessage.MessagerUser = messagerUser;
            userMessage.OwnerUser = ownerUser;
            userMessage.ParentID = parentID;
            userMessage.Reply = reply;
            userMessage.CreateTime = DateTime.Now;

            return userMessage;
        }
    }
}
